import Main from '@/components/main'
import parentView from '@/components/parent-view'
import yiQingRouter from './group/yi-qing-fang-kong'
import systemRouter from './group/system'
import systemSetupRouter from './group/system-setup'

/**
 * iview-admin中meta除了原生参数外可配置的参数:
 * meta: {
 *  title: { String|Number|Function }
 *         显示在侧边栏、面包屑和标签栏的文字
 *         使用'{{ 多语言字段 }}'形式结合多语言使用，例子看多语言的路由配置;
 *         可以传入一个回调函数，参数是当前路由对象，例子看动态路由和带参路由
 *  hideInBread: (false) 设为true后此级路由将不会出现在面包屑中，示例看QQ群路由配置
 *  hideInMenu: (false) 设为true后在左侧菜单不会显示该页面选项
 *  notCache: (false) 设为true后页面在切换标签后不会缓存，如果需要缓存，无需设置这个字段，而且需要设置页面组件name属性和路由配置的name一致
 *  access: (null) 可访问该页面的权限数组，当前路由设置的权限会影响子路由
 *  icon: (-) 该页面在左侧菜单、面包屑和标签导航处显示的图标，如果是自定义图标，需要在图标名称前加下划线'_'
 *  beforeCloseName: (-) 设置该字段，则在关闭当前tab页时会去'@/router/before-close.js'里寻找该字段名对应的方法，作为关闭前的钩子函数
 * }
 */

const base = [
  {
    path: '/login',
    name: 'login',
    meta: {
      title: 'Login - 登录',
      hideInMenu: true
    },
    component: () => import('@/view/login/login.vue')
  },
  {
    path: '/yi-qing/statistics-mobile',
    name: 'yiQingStatisticsMobile',
    meta: {
      title: '社区重点人群疫情排查数据管理平台'
    },
    component: () => import('@/view/yi-qing-fang-kong/statistics/mobile')
  },
  {
    path: '/newhouserent',
    name: 'newhouserent',
    meta: {
      icon: 'md-funnel',
      title: '房屋租赁'
    },
    component: () => import('@/view/xian-page/newhouserent/index.vue')
  },
  {
    path: '/indexv3',
    name: 'indexv3',
    redirect: '/indexv3',
    meta: {
      title: '首页v3',
      hideInMenu: true,
      hide: true
    },
    component: () => import('@/view/xian-page/indexv3/index.vue'),
    children: [
      {
        path: '/mainv3',
        name: 'mainv3',
        meta: {
          title: '首页',
          icon: 'md-home',
          notCache: true,
          hide: true
        },
        component: () => import('@/view/xian-page/mainv3/index.vue')
      },
      {
        path: '/shequ-jiedao-list',
        name: 'shequ-jiedao-list',
        meta: {
          title: '社区街道查询',
          icon: 'md-home'
        },
        component: () => import('@/view/system/shequ-jiedao-list/index.vue')
      },
      {
        path: '/workbench',
        name: 'workbench',
        meta: {
          title: '工作台',
          icon: 'md-home',
          hide: true
        },
        component: () => import('@/view/xian-page/workbench/index.vue')
      },
      {
        path: '/separateservice',
        name: 'separateservice',
        meta: {
          icon: 'md-funnel',
          title: '收受分离',
          hideInBread: true,
          hide: true
        },
        component: () => import('@/view/xian-page/separateservice/index.vue')
      },
      {
        path: '/telnote',
        name: 'telnote',
        meta: {
          title: '通讯录',
          icon: 'md-home',
          hide: true
        },
        component: () => import('@/view/xian-page/telnote/index.vue')
      },
      {
        path: '/knowledgebase',
        name: 'knowledgebase',
        meta: {
          title: '知识库',
          icon: 'md-home',
          hide: true
        },
        component: () => import('@/view/xian-page/knowledgebase/index.vue')
      },
      {
        path: '/waitdo',
        name: 'waitdo',
        meta: {
          title: '通知公告',
          icon: 'md-home',
          hide: true
        },
        component: () => import('@/view/xian-page/waitdo/index.vue')
      },
      {
        path: '/message',
        name: 'message',
        meta: {
          title: '通知公告',
          icon: 'md-home',
          hide: true
        },
        component: () => import('@/view/xian-page/message/index.vue')
      },
      {
        path: '/itemoption',
        name: 'item',
        meta: {
          title: '事项查看',
          icon: 'md-home',
          hide: true
        },
        component: () => import('@/view/xian-page/itemoption/index.vue')
      },
      {
        path: '/question',
        name: 'question',
        meta: {
          title: '问题咨询',
          icon: 'md-home',
          hide: true
        },
        component: () => import('@/view/xian-page/questionconsultation/index.vue')
      },
      {
        path: '/dailyrecord',
        name: 'dailyrecord',
        meta: {
          title: '日志',
          icon: 'md-home',
          hide: true
        },
        component: () => import('@/view/xian-page/dailyrecord/index.vue')
      },
      {
        path: '/grid',
        name: 'grid',
        meta: {
          title: '网格一张图',
          icon: 'md-home',
          hide: true
        },
        component: () => import('@/view/xian-page/grid/index.vue')
      },
      {
        path: '/agentreservation',
        name: 'agentreservation',
        meta: {
          title: '代理/预约',
          icon: 'md-home',
          hide: true
        },
        component: () => import('@/view/xian-page/agentreservation/index.vue')
      },
      {
        path: '/activitymanagement',
        name: 'activitymanagement',
        meta: {
          title: '活动管理',
          icon: 'md-home',
          hide: true
        },
        component: () => import('@/view/xian-page/activitymanagement/index.vue')
      },

      {
        path: '/apply_disabled_allowance',
        name: 'apply_disabled_allowance',
        meta: {
          title: '用户信息',
          icon: 'md-home',
          hide: true
        },
        component: () => import('@/view/xian-page/apply_disabled_allowance/index.vue')
      },
      {
        path: '/gridmaintain',
        name: 'gridmaintain',
        meta: {
          title: '网格信息维护',
          icon: 'md-home'
        },
        component: () => import('@/view/xian-page/grid-maintain/index.vue')
      },
      {
        path: '/handinformation',
        name: 'handinformation',
        meta: {
          icon: 'md-funnel',
          title: '办件信息',
          hide: false
        },
        component: () => import('@/view/xian-page/handinformation/index.vue')
      },
      {
        path: '/house_handinformation',
        name: 'house_handinformation',
        meta: {
          icon: 'md-funnel',
          title: '办件信息',
          hide: false
        },
        component: () => import('@/view/xian-page/house_handinformation/index.vue')
      },
      {
        path: '/subsistenceapplication',
        name: 'subsistenceapplication',
        meta: {
          hideInMenu: true,
          icon: 'md-funnel',
          title: '城市低保救助申请',
          hide: false
        },
        component: () => import('@/view/xian-page/subsistenceapplication/index.vue')
      },
      {
        path: '/tk_subsistenceapplication',
        name: 'tk_subsistenceapplication',
        meta: {
          hideInMenu: true,
          icon: 'md-funnel',
          title: '特困申请人基本信息',
          hide: false
        },
        component: () => import('@/view/xian-page/tk_subsistenceapplication/index.vue')
      },
      {
        path: '/tk_supportlist',
        name: 'tk_supportlist',
        meta: {
          hideInMenu: true,
          icon: 'md-funnel',
          title: '特困赡抚扶养',
          hide: false
        },
        component: () => import('@/view/xian-page/tk_supportlist/index.vue')
      },
      {
        path: '/tk_basicproperty',
        name: 'tk_basicproperty',
        meta: {
          hideInMenu: true,
          icon: 'md-funnel',
          title: '特困基础财产',
          hide: false
        },
        component: () => import('@/view/xian-page/tk_basicproperty/index.vue')
      },
      {
        path: '/tk_houseproperty',
        name: 'tk_houseproperty',
        meta: {
          hideInMenu: true,
          icon: 'md-funnel',
          title: '特困财产-房产',
          hide: false
        },
        component: () => import('@/view/xian-page/tk_houseproperty/index.vue')
      },
      {
        path: '/tk_nearfamily',
        name: 'tk_nearfamily',
        meta: {
          hideInMenu: true,
          icon: 'md-funnel',
          title: '特困办理要件',
          hide: false
        },
        component: () => import('@/view/xian-page/tk_nearfamily/index.vue')
      },
      {
        path: '/subsistenceapplication1',
        name: 'subsistenceapplication1',
        meta: {
          icon: 'md-funnel',
          title: '城市低保救助申请2',
          hideInMenu: true,
          hide: false
        },
        component: () => import('@/view/xian-page/subsistenceapplication1/index.vue')
      },
      {
        path: '/tk_subsistenceapplication1',
        name: 'tk_subsistenceapplication1',
        meta: {
          icon: 'md-funnel',
          title: '特困申请人详细信息',
          hideInMenu: true,
          hide: false
        },
        component: () => import('@/view/xian-page/tk_subsistenceapplication1/index.vue')
      },
      {
        path: '/subsistenceapplication2',
        name: 'subsistenceapplication2',
        meta: {
          icon: 'md-funnel',
          title: '基础收入列表',
          hide: false
        },
        component: () => import('@/view/xian-page/subsistenceapplication2/index.vue')
      },
      {
        path: '/tk_subsistenceapplication2',
        name: 'tk_subsistenceapplication2',
        meta: {
          icon: 'md-funnel',
          title: '基础收入列表',
          hide: false
        },
        component: () => import('@/view/xian-page/tk_subsistenceapplication2/index.vue')
      },
      {
        path: '/expenditurelist',
        name: 'expenditurelist',
        meta: {
          icon: 'md-funnel',
          title: '基础支出列表',
          hide: false
        },
        component: () => import('@/view/xian-page/expenditurelist/index.vue')
      },
      {
        path: '/supportlist',
        name: 'supportlist',
        meta: {
          icon: 'md-funnel',
          title: '赡抚扶养',
          hideInMenu: true,
          hide: false
        },
        component: () => import('@/view/xian-page/supportlist/index.vue')
      },
      {
        path: '/basicproperty',
        name: 'basicproperty',
        meta: {
          icon: 'md-funnel',
          title: '基础财产信息',
          hideInMenu: true,
          hide: false
        },
        component: () => import('@/view/xian-page/basicproperty/index.vue')
      },
      {
        path: '/houseproperty',
        name: 'houseproperty',
        meta: {
          icon: 'md-funnel',
          title: '财产房产信息',
          hideInMenu: true,
          hide: false
        },
        component: () => import('@/view/xian-page/houseproperty/index.vue')
      },
      {
        path: '/workunit',
        name: 'workunit',
        meta: {
          icon: 'md-funnel',
          title: '工作单位信息',
          hideInMenu: true,
          hide: false
        },
        component: () => import('@/view/xian-page/workunit/index.vue')
      },
      {
        path: '/educationinfo',
        name: 'educationinfo',
        meta: {
          icon: 'md-funnel',
          title: '教育情况信息',
          hideInMenu: true,
          hide: false
        },
        component: () => import('@/view/xian-page/educationinfo/index.vue')
      },
      {
        path: '/nearfamily',
        name: 'nearfamily',
        meta: {
          icon: 'md-funnel',
          title: '家庭附件信息',
          hideInMenu: true,
          hide: false
        },
        component: () => import('@/view/xian-page/nearfamily/index.vue')
      },
      {
        path: '/submitinfo',
        name: 'submitinfo',
        meta: {
          icon: 'md-funnel',
          title: '提交信息',
          hide: false
        },
        component: () => import('@/view/xian-page/submitinfo/index.vue')
      },
      {
        path: '/stopinsurance',
        name: 'stopinsurance',
        meta: {
          icon: 'md-funnel',
          title: '停保家庭信息',
          hide: false
        },
        component: () => import('@/view/xian-page/stopinsurance/index.vue')
      },
      {
        path: '/deathstop',
        name: 'deathstop',
        meta: {
          icon: 'md-funnel',
          title: '死亡停救受理',
          hide: false
        },
        component: () => import('@/view/xian-page/deathstop/index.vue')
      },
      {
        path: '/transregionalmigration',
        name: 'transregionalmigration',
        meta: {
          icon: 'md-funnel',
          title: '迁移家庭信息',
          hide: false
        },
        component: () => import('@/view/xian-page/transregionalmigration/index.vue')
      },
      {
        path: '/transferacceptance',
        name: 'transferacceptance',
        meta: {
          icon: 'md-funnel',
          title: '跨区迁移受理',
          hide: false
        },
        component: () => import('@/view/xian-page/transferacceptance/index.vue')
      },
      {
        path: '/specialrelief',
        name: 'specialrelief',
        meta: {
          icon: 'md-funnel',
          title: '个人有效救助信息',
          hide: false
        },
        component: () => import('@/view/xian-page/specialrelief/index.vue')
      },
      {
        path: '/tworescues',
        name: 'tworescues',
        meta: {
          icon: 'md-funnel',
          title: '两节救助有效信息',
          hide: false
        },
        component: () => import('@/view/xian-page/tworescues/index.vue')
      },
      {
        path: '/heatingassistance',
        name: 'heatingassistance',
        meta: {
          icon: 'md-funnel',
          title: '个人采暖救助有效信息'
        },
        component: () => import('@/view/xian-page/heatingassistance/index.vue')
      },
      {
        path: '/acceptancenotice',
        name: 'acceptancenotice',
        meta: {
          icon: 'md-funnel',
          title: '便民服务事项受理通知单',
          hide: false
        },
        component: () => import('@/view/xian-page/acceptancenotice/index.vue')
      },
      {
        path: '/closingratelist',
        name: 'closingratelist',
        meta: {
          icon: 'md-funnel',
          title: '统计'
        },
        component: () => import('@/view/xian-page/closingratelist/index.vue')
      },
      {
        path: '/matterslist',
        name: 'matterslist',
        meta: {
          icon: 'md-funnel',
          title: '事项办理名单',
          hide: false
        },
        component: () => import('@/view/xian-page/matterslist/index.vue')
      },
      {
        path: '/matterssynchronization',
        name: 'matterssynchronization',
        meta: {
          icon: 'md-funnel',
          title: '财产房产信息',
          hideInMenu: true,
          hide: false
        },
        component: () => import('@/view/xian-page/matterssynchronization/index.vue')
      },
      {
        path: '/itemlist',
        name: 'itemlist',
        meta: {
          icon: 'md-funnel',
          title: '事项清单',
          hideInMenu: true
        },
        component: () => import('@/view/xian-page/itemlist/index.vue')
      },
      {
        path: '/erQcode',
        name: 'erQcode',
        meta: {
          icon: 'md-funnel',
          title: '二维码',
          hideInMenu: true
        },
        component: () => import('@/view/xian-page/erQcode/index.vue')
      }
    ]
  },
  {
    path: '/',
    name: '_home',
    redirect: '/home',
    component: Main,
    meta: {
      hideInMenu: true,
      notCache: true
    },
    children: [
      {
        path: '/home',
        name: 'home',
        meta: {
          hideInMenu: true,
          title: '首页',
          notCache: true,
          icon: 'md-home'
        },
        component: () => import('@/view/single-page/home')
      }
    ]
  },
  {
    path: '',
    name: 'doc',
    meta: {
      title: '文档',
      href: 'https://lison16.github.io/iview-admin-doc/#/',
      icon: 'ios-book'
    }
  },
  {
    path: '/join',
    name: 'join',
    component: Main,
    meta: {
      hideInBread: true
    },
    children: [
      {
        path: 'join_page',
        name: 'join_page',
        meta: {
          icon: '_qq',
          title: 'QQ群222'
        },
        component: () => import('@/view/join-page.vue')
      }
    ]
  },
  {
    path: '/message',
    name: 'message',
    component: Main,
    meta: {
      hideInBread: true,
      hideInMenu: true
    },
    children: [
      {
        path: 'message_page',
        name: 'message_page',
        meta: {
          icon: 'md-notifications',
          title: '消息中心'
        },
        component: () => import('@/view/single-page/message/index.vue')
      }
    ]
  },
  {
    path: '/components',
    name: 'components',
    meta: {
      icon: 'logo-buffer',
      title: '组件'
    },
    component: Main,
    children: [
      {
        path: 'tree_select_page',
        name: 'tree_select_page',
        meta: {
          icon: 'md-arrow-dropdown-circle',
          title: '树状下拉选择器'
        },
        component: () => import('@/view/components/tree-select/index.vue')
      },
      {
        path: 'count_to_page',
        name: 'count_to_page',
        meta: {
          icon: 'md-trending-up',
          title: '数字渐变'
        },
        component: () => import('@/view/components/count-to/count-to.vue')
      },
      {
        path: 'drag_list_page',
        name: 'drag_list_page',
        meta: {
          icon: 'ios-infinite',
          title: '拖拽列表'
        },
        component: () => import('@/view/components/drag-list/drag-list.vue')
      },
      {
        path: 'drag_drawer_page',
        name: 'drag_drawer_page',
        meta: {
          icon: 'md-list',
          title: '可拖拽抽屉'
        },
        component: () => import('@/view/components/drag-drawer')
      },
      {
        path: 'org_tree_page',
        name: 'org_tree_page',
        meta: {
          icon: 'ios-people',
          title: '组织结构树'
        },
        component: () => import('@/view/components/org-tree')
      },
      {
        path: 'tree_table_page',
        name: 'tree_table_page',
        meta: {
          icon: 'md-git-branch',
          title: '树状表格'
        },
        component: () => import('@/view/components/tree-table/index.vue')
      },
      {
        path: 'cropper_page',
        name: 'cropper_page',
        meta: {
          icon: 'md-crop',
          title: '图片裁剪'
        },
        component: () => import('@/view/components/cropper/cropper.vue')
      },
      {
        path: 'tables_page',
        name: 'tables_page',
        meta: {
          icon: 'md-grid',
          title: '多功能表格'
        },
        component: () => import('@/view/components/tables/tables.vue')
      },
      {
        path: 'split_pane_page',
        name: 'split_pane_page',
        meta: {
          icon: 'md-pause',
          title: '分割窗口'
        },
        component: () => import('@/view/components/split-pane/split-pane.vue')
      },
      {
        path: 'markdown_page',
        name: 'markdown_page',
        meta: {
          icon: 'logo-markdown',
          title: 'Markdown编辑器'
        },
        component: () => import('@/view/components/markdown/markdown.vue')
      },
      {
        path: 'editor_page',
        name: 'editor_page',
        meta: {
          icon: 'ios-create',
          title: '富文本编辑器'
        },
        component: () => import('@/view/components/editor/editor.vue')
      },
      {
        path: 'icons_page',
        name: 'icons_page',
        meta: {
          icon: '_bear',
          title: '自定义图标'
        },
        component: () => import('@/view/components/icons/icons.vue')
      }
    ]
  },
  {
    path: '/update',
    name: 'update',
    meta: {
      icon: 'md-cloud-upload',
      title: '数据上传'
    },
    component: Main,
    children: [
      {
        path: 'update_table_page',
        name: 'update_table_page',
        meta: {
          icon: 'ios-document',
          title: '上传Csv'
        },
        component: () => import('@/view/update/update-table.vue')
      },
      {
        path: 'update_paste_page',
        name: 'update_paste_page',
        meta: {
          icon: 'md-clipboard',
          title: '粘贴表格数据'
        },
        component: () => import('@/view/update/update-paste.vue')
      }
    ]
  },
  {
    path: '/excel',
    name: 'excel',
    meta: {
      icon: 'ios-stats',
      title: 'EXCEL导入导出'
    },
    component: Main,
    children: [
      {
        path: 'upload-excel',
        name: 'upload-excel',
        meta: {
          icon: 'md-add',
          title: '导入EXCEL'
        },
        component: () => import('@/view/excel/upload-excel.vue')
      },
      {
        path: 'export-excel',
        name: 'export-excel',
        meta: {
          icon: 'md-download',
          title: '导出EXCEL'
        },
        component: () => import('@/view/excel/export-excel.vue')
      }
    ]
  },
  {
    path: '/tools_methods',
    name: 'tools_methods',
    meta: {
      hideInBread: true
    },
    component: Main,
    children: [
      {
        path: 'tools_methods_page',
        name: 'tools_methods_page',
        meta: {
          icon: 'ios-hammer',
          title: '工具方法',
          beforeCloseName: 'before_close_normal'
        },
        component: () => import('@/view/tools-methods/tools-methods.vue')
      }
    ]
  },
  {
    path: '/i18n',
    name: 'i18n',
    meta: {
      hideInBread: true
    },
    component: Main,
    children: [
      {
        path: 'i18n_page',
        name: 'i18n_page',
        meta: {
          icon: 'md-planet',
          title: 'i18n - {{ i18n_page }}'
        },
        component: () => import('@/view/i18n/i18n-page.vue')
      }
    ]
  },
  {
    path: '/error_store',
    name: 'error_store',
    meta: {
      hideInBread: true
    },
    component: Main,
    children: [
      {
        path: 'error_store_page',
        name: 'error_store_page',
        meta: {
          icon: 'ios-bug',
          title: '错误收集'
        },
        component: () => import('@/view/error-store/error-store.vue')
      }
    ]
  },
  {
    path: '/error_logger',
    name: 'error_logger',
    meta: {
      hideInBread: true,
      hideInMenu: true
    },
    component: Main,
    children: [
      {
        path: 'error_logger_page',
        name: 'error_logger_page',
        meta: {
          icon: 'ios-bug',
          title: '错误收集'
        },
        component: () => import('@/view/single-page/error-logger.vue')
      }
    ]
  },
  {
    path: '/directive',
    name: 'directive',
    meta: {
      hideInBread: true
    },
    component: Main,
    children: [
      {
        path: 'directive_page',
        name: 'directive_page',
        meta: {
          icon: 'ios-navigate',
          title: '指令'
        },
        component: () => import('@/view/directive/directive.vue')
      }
    ]
  },
  {
    path: '/multilevel',
    name: 'multilevel',
    meta: {
      icon: 'md-menu',
      title: '多级菜单'
    },
    component: Main,
    children: [
      {
        path: 'level_2_1',
        name: 'level_2_1',
        meta: {
          icon: 'md-funnel',
          title: '二级-1'
        },
        component: () => import('@/view/multilevel/level-2-1.vue')
      },
      {
        path: 'level_2_2',
        name: 'level_2_2',
        meta: {
          access: ['super_admin'],
          icon: 'md-funnel',
          showAlways: true,
          title: '二级-2'
        },
        component: parentView,
        children: [
          {
            path: 'level_2_2_1',
            name: 'level_2_2_1',
            meta: {
              icon: 'md-funnel',
              title: '三级'
            },
            component: () => import('@/view/multilevel/level-2-2/level-2-2-1.vue')
          },
          {
            path: 'level_2_2_2',
            name: 'level_2_2_2',
            meta: {
              icon: 'md-funnel',
              title: '三级'
            },
            component: () => import('@/view/multilevel/level-2-2/level-2-2-2.vue')
          }
        ]
      },
      {
        path: 'level_2_3',
        name: 'level_2_3',
        meta: {
          icon: 'md-funnel',
          title: '二级-3'
        },
        component: () => import('@/view/multilevel/level-2-3.vue')
      }
    ]
  },
  {
    path: '/argu',
    name: 'argu',
    meta: {
      hideInMenu: true
    },
    component: Main,
    children: [
      {
        path: 'params/:id',
        name: 'params',
        meta: {
          icon: 'md-flower',
          title: route => `{{ params }}-${route.params.id}`,
          notCache: true,
          beforeCloseName: 'before_close_normal'
        },
        component: () => import('@/view/argu-page/params.vue')
      },
      {
        path: 'query',
        name: 'query',
        meta: {
          icon: 'md-flower',
          title: route => `{{ query }}-${route.query.id}`,
          notCache: true
        },
        component: () => import('@/view/argu-page/query.vue')
      }
    ]
  },
  {
    path: '/401',
    name: 'error_401',
    meta: {
      hideInMenu: true
    },
    component: () => import('@/view/error-page/401.vue')
  },
  {
    path: '/500',
    name: 'error_500',
    meta: {
      hideInMenu: true
    },
    component: () => import('@/view/error-page/500.vue')
  },
  {
    path: '*',
    name: 'error_404',
    meta: {
      hideInMenu: true
    },
    component: () => import('@/view/error-page/404.vue')
  },
  {
    path: '/hdpage',
    name: 'hdpage',
    component: Main,
    meta: {
      hideInBread: true
    },
    children: [
      {
        path: 'hd_test',
        name: 'hd_test',
        meta: {
          icon: 'md-funnel',
          title: '二级-32'
        },
        component: () => import('@/view/hdpage/test/index.vue')
      },
      {
        path: 'goods',
        name: 'goods',
        meta: {
          icon: 'md-funnel',
          title: '编辑页面'
        },
        component: () => import('@/view/hdpage/goods/index.vue')
      },
      {
        path: 'tabletest',
        name: 'tabletest',
        meta: {
          icon: 'md-funnel',
          title: '编辑页面'
        },
        component: () => import('@/view/hdpage/table/index.vue')
      },
      {
        path: 'camera',
        name: 'camera',
        meta: {
          icon: 'md-funnel',
          title: '高拍仪demo页面'
        },
        component: () => import('@/view/demo/camera/index.vue')
      },
      {
        path: 'camera2',
        name: 'camera2',
        meta: {
          icon: 'md-funnel',
          title: '高拍仪demo页面'
        },
        component: () => import('@/view/demo/camera2/index.vue')
      },
      {
        path: 'device',
        name: 'device',
        meta: {
          icon: 'md-funnel',
          title: '设备demo'
        },
        component: () => import('@/view/demo/device/index.vue')
      },
      {
        path: 'idcard',
        name: 'idcard',
        meta: {
          icon: 'md-funnel',
          title: '身份证读取'
        },
        component: () => import('@/view/demo/idcard/index.vue')
      },
      {
        path: 'face',
        name: 'face',
        meta: {
          icon: 'md-funnel',
          title: '人脸识别'
        },
        component: () => import('@/view/demo/face/index.vue')
      },
      {
        path: 'layim',
        name: 'layim',
        meta: {
          icon: 'md-funnel',
          title: '通讯软件'
        },
        component: () => import('@/view/demo/layim/index.vue')
      },
      {
        path: 'data',
        name: 'data',
        meta: {
          icon: 'md-funnel',
          title: '数据变动测试'
        },
        component: () => import('@/view/demo/data/index.vue')
      },
      {
        path: 'print',
        name: 'print',
        meta: {
          icon: 'md-funnel',
          title: '打印demo'
        },
        component: () => import('@/view/demo/print/index.vue')
      },
      {
        path: 'pdf',
        name: 'pdf',
        meta: {
          icon: 'md-funnel',
          title: 'pdfDemo'
        },
        component: () => import('@/view/demo/pdf/index.vue')
      }
    ]
  },
  {
    path: '/xianpage',
    name: 'xianpage',
    component: Main,
    meta: {
      hideInBread: true
    },
    children: [
      {
        path: 'city',
        name: 'city',
        meta: {
          icon: 'md-funnel',
          title: '城市管理'
        },
        component: () => import('@/view/xian-page/city/index.vue')
      },
      {
        path: 'grids',
        name: 'grids',
        meta: {
          icon: 'md-funnel',
          title: '网格管理'
        },
        component: () => import('@/view/xian-page/grids/index.vue')
      },
      {
        path: 'people',
        name: 'people',
        meta: {
          icon: 'md-funnel',
          title: '人员管理'
        },
        component: () => import('@/view/xian-page/people/index.vue')
      },
      {
        path: 'event',
        name: 'event',
        meta: {
          icon: 'md-funnel',
          title: '事件列表'
        },
        component: () => import('@/view/xian-page/event/index.vue')
      },
      {
        path: 'gridlist',
        name: 'gridlist',
        meta: {
          icon: 'md-funnel',
          title: '网格列表'
        },
        component: () => import('@/view/xian-page/gridlist/index.vue')
      },
      {
        path: 'eventlist',
        name: 'eventlist',
        meta: {
          icon: 'md-funnel',
          title: '事件列表1',
          notCache: false
        },
        component: () => import('@/view/xian-page/eventlist/index.vue')
      },
      {
        path: 'eventorderlist',
        name: 'eventorderlist',
        meta: {
          icon: 'md-funnel',
          title: '事件订单列表'
        },
        component: () => import('@/view/xian-page/eventorderlist/index.vue')
      },
      {
        path: 'classifiedassistance',
        name: 'classifiedassistance',
        meta: {
          icon: 'md-funnel',
          title: '分类救助信息',
          hideInMenu: true
        },
        component: () => import('@/view/xian-page/classifiedassistance/index.vue')
      },
      {
        path: 'applicationsalvage',
        name: 'applicationsalvage',
        meta: {
          icon: 'md-funnel',
          title: '低保救助申请',
          hideInMenu: true
        },
        component: () => import('@/view/xian-page/applicationsalvage/index.vue')
      },
      {
        path: 'brandlist',
        name: 'brandlist',
        meta: {
          icon: 'md-funnel',
          title: '品牌列表'
        },
        component: () => import('@/view/ctcard/brandlist/index.vue')
      },
      {
        path: 'brandshop',
        name: 'brandshop',
        meta: {
          icon: 'md-funnel',
          title: '品牌列表'
        },
        component: () => import('@/view/ctcard/brandshop/index.vue')
      },
      {
        path: 'productlist',
        name: 'productlist',
        meta: {
          icon: 'md-funnel',
          title: '产品列表'
        },
        component: () => import('@/view/ctcard/productlist/index.vue')
      },
      {
        path: 'newstart',
        name: 'newstart',
        meta: {
          icon: 'md-funnel',
          title: '产品列表'
        },
        component: () => import('@/view/xian-page/newstart/index.vue')
      },
      {
        path: '/test',
        name: 'test',
        meta: {
          icon: 'md-funnel',
          title: 'test'
        },
        component: () => import('@/view/post-test/gpi.vue')
      }
    ]
  }
]
base[3].children.push.apply(base[3].children, yiQingRouter)
base[3].children.push.apply(base[3].children, systemRouter)
base[3].children.push.apply(base[3].children, systemSetupRouter)
export default base
